import service from "@/http/index";




/**
 *获取轮播图信息
 type: 0/pc   1/安卓  2/iPhone  3/ipad
 */

export function getBanNerList() {
  return service.get('http://localhost:5050/api/banner/type=0')
}

/***
 * 获取推荐歌单
 */

export function getRecomSongList(limit) {
  return service.get(`http://localhost:5050/api/personalized?limit=${limit}`)
}

/**
 * 获取网友精选歌单(最新)
 */

export function getSongPlaylist(data) {
  return service.get(`http://localhost:5050/api/top/playlist?limit=${data.limit}&order=${data.order}`,)
}

/**
 * 获取最新专辑
 */
export function getLatestAlbum() {
  return service.get(`http://localhost:5050/api/album/newest`)
}

/**
 * 获取所有榜单
 */
export function getAllSongList() {
  return service.get(`http://localhost:5050/api/toplist/detail`)
}